home *** CD-ROM | disk | FTP | other *** search
- 0, In this demonstration, you will see how to add
- 4, standard HTML controls to a Web page using the
- 7, FrontPage editor. This Web page should retrieve
- 11, information about the user, such as their name and their
- 14, age. In FrontPage, you add standard HTML controls
- 18, to a page with the Insert menu and the Form Field
- 22, command. Then select the control that you want to
- 25, insert from this menu. Select One-Line Text Box to
- 29, enter the Name information. With FrontPage, all
- 34, controls need to be placed on a form. So FrontPage
- 38, creates the form, indicated by this dashed box, and
- 42, inserts the text box on it. To set properties of
- 46, the text box, right-click the control, and select
- 50, Form Field Properties. In the Text Box Properties
- 55, dialog, you can set properties such as the Name and
- 61, the length. Notice that FrontPage creates the
- 68, text box, but doesn't supply any identifying text.
- 72, You need to identify the field with your own text,
- 80, such as Name. To send information from a form to
- 84, the Web server, add a Submit button to the form.
- 91, Select Insert, Form Field, and then select Push
- 96, Button. The default type of Push button is a Submit
- 100, button. Now you can set the Action property for the
- 103, form. Right-click anywhere in the form and select
- 107, Form Properties. Make sure the Form Handler is
- 111, Custom ISAPI, NSAPI, or CGI Script, and select
- 116, Settings. You can set the Action to the name of the
- 120, Active Server Page you want to send the values of the
- 123, controls on the form to, such as getuserdata.asp.
- 134, Let's save this file and see what it looks like in
- 137, the browser. Select Preview in Browser, then select
- 142, Microsoft Internet Explorer. The Web page, in
- 148, Internet Explorer, contains the text box and the
- 151, Submit button that we added. You can enter data into
- 156, the text box, such as your name, and when you
- 159, select the Submit button, it will send the value of the
- 161, text box to the Active Server Page. Let's look at
- 166, the source for this HTML page. You can see the
- 175, tags that were added by FrontPage: the tag for the
- 177, form with the Action set to the Active Server Page,
- 182, the tag for the Name text box, with the size set
- 186, to 10, and the name set to the txtName, as we set in
- 191, the FrontPage Editor, and the tag for the Submit
- 194, button. So, now you have seen how to add standard
- 199, HTML controls to a form with the FrontPage editor.
- 204, END